package com.cmc.cloud.cmclink.doc.api.document.emums;

import lombok.Getter;

import java.util.Objects;

/**
 * @author 周贤
 * @date 2025/5/19
 */
public enum EmImTypeEnum {
    /**
     * 进口
     */
    IMPORT("IM", "进口"),
    /**
     * 出口
     */
    EXPORT("EX", "出口");

    @Getter
    private String value;

    @Getter
    private String label;

    public static boolean isImport(String  value) {
        return Objects.equals(IMPORT.value, value);
    }
    public static boolean isExport(String  value) {
        return Objects.equals(EXPORT.value, value);
    }

    EmImTypeEnum(String value, String label) {
        this.value = value;
        this.label = label;
    }
}
